package Plugin
{
	import Objects.GameObject;

	public class TweenObjectPlugin extends TweenPlugin
	{
		public var autoKillGo:Boolean=false;
		public var go:GameObject;
		public var handleX:Number=0;
		public var handleY:Number=0;
		override protected function $update():void
		{
			if(go.removed)
			{
				remove();
			}
			super.$update();
			if(time==duration&&duration>0)
			{
				if(autoKillGo)
				{
					go.remove();
				}
			}
		}
	}
}